/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pl.cezary.butler.walili.server.shuffling;

import java.util.Comparator;

/**
 *
 * @author Czarek
 */
public class ShufflableString extends Shufflable {

    private final String content;

    public ShufflableString(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }
    
    private static final Comparator<ShufflableString> comparator = new ShufflingComparator<ShufflableString>() {

        @Override
        protected boolean similarityTest(ShufflableString o1, ShufflableString o2) {
            return o1.content.equals(o2.content);
        }
    };

    public static Comparator<ShufflableString> getComparator() {
        return comparator;
    }
}
